package org.ehe.business.project.domain;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity2;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author :zhangnn
 * @className :ProjectAssignmentEntity
 * @description: 项目分配表
 * @date 2025-07-16 10:38:53
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_project_assignment")
public class ProjectAssignmentEntity extends BaseEntity2 {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("project_id")
    private Long projectId;


    @TableField(exist = false)
    private String projectName;

    @TableField("engineer_id")
    private Long engineerId;

    @TableField("assignment_date")
    private LocalDateTime assignmentDate;

    @TableField("planned_days")
    private Integer plannedDays;

    @TableField("actual_days")
    private Integer actualDays;

    @TableField("completion_date")
    private LocalDateTime completionDate;

    @TableField("test_passed")
    private Integer testPassed;

    @TableField("timeliness_score")
    private BigDecimal timelinessScore;

    @TableField("difficulty_score")
    private BigDecimal difficultyScore;

    @TableField("success_score")
    private BigDecimal successScore;

    @TableField("total_score")
    private BigDecimal totalScore;

    @TableField("status")
    private String status;

}
